package com.bc.bcupload.common;

public enum UploadFrom {
	
	GoodStore(1, "商品库图片"),
    ServiceStation(2, "商品图片"),
    GosImgs_BrandImgs(3, "品牌图片"),
    GosImgs_ADImgs(4, "广告图片"),
    GosImgs_ShopImgs(5, "供货商身份证及营业执照[服务站]"),
    GosImgs_SuperMarketImgs(6, "超市身份证及营业执照[服务站]"),
	HmcImgs_ADImgs(7, "专题活动banner、事业部营业执照、服务站营业执照、供货商身份证及营业执照、超市图片身份证及营业执照[总部后台]"),
	SupermarketHeadImg(8, "超市头像"),
	Ordmt_ComboImgs(9, "订货会套餐图片"),
	Ordmt_ActivityImgs(10, "订货会活动图片"),
	Ordmt_ADImgs(11, "订货会广告图片"),
	Factory_PublicityImage(100, "厂商宣传图片"),
	Factory_AuthImage(101, "厂商用户认证图片"),
	GosFiles_AfficheBarFiles(1000, "总部公告栏的文件"),
	Others(-1, "其它图片");
	
	private int value = 0;
	private String desc;
	
	private UploadFrom(int value, String desc) { 
		this.value = value;
		this.desc = desc;
	}
	public int value() {
		return this.value;
	}
	public String desc() {
		return this.desc;
	}
	
	public static UploadFrom getEnum(int val){
		for(UploadFrom uf : UploadFrom.values()){
			if(uf.value() == val){
				return uf;
			}
		}
		return Others;
	}
}
